﻿#ifndef __SS_TEXTURE2D_RENDER_H__
#define __SS_TEXTURE2D_RENDER_H__
#include "ssMeshRender.h"


namespace StarSeeker
{

class ssTexture2dRender : public ssMeshRender
{
public:
	ssTexture2dRender();
	~ssTexture2dRender();
	//设置纹理坐标数组，numCoordLayer纹理数组层数(一层纹理坐标就写1)
	bool SetTextureCoord(u8 numCoordLayer, u32 numFloat, const ssfloat* pt);
	//使用模型对象设置渲染数据
	void SetDataFromMesh(u8 numCoordLayer, const char* uri);
protected:
	//渲染前
	virtual void OnRenderBegin();
	//渲染后
	virtual void OnRenderEnd();

protected:
	ssVBOBind*			m_texCoord;			//纹理坐标
	ssShaderAttribute	m_texAttrib;
};

}
#endif
